﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Calculator
{
    class NodeTuple
    {
        private readonly int _startNodeIdentifier;
        private readonly Node _toNodeConnected;

        public NodeTuple(int startNodeIdentifier, Node toNodeConnected)
        {
            this._startNodeIdentifier = startNodeIdentifier;
            this._toNodeConnected = toNodeConnected;
        }

        public Node ToNode()
        {
            return _toNodeConnected;
        }

        public int IdNodeFrom()
        {
            return _startNodeIdentifier;
        }

        public override string ToString()
        {
            return string.Format("From {0} Connected To -> {1}", _startNodeIdentifier, _toNodeConnected);
        }
    }
}
